package com.doitnow.pets.service.impl;

import com.doitnow.pets.dao.DictDao;
import com.doitnow.pets.entity.Dict;
import com.doitnow.pets.service.DictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class IDictServiceImpl implements DictService {
    @Autowired
    private DictDao dictDao;

    @Override
    public List<Dict> selectDictList() {
        return dictDao.selectDictList();
    }

    @Override
    public Dict getDictById(Long id) {
        return dictDao.getDictById(id);
    }


}
